package com.heima.feign.article.fallback;

import com.heima.feign.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.comment.dtos.CommentNewsQueryDto;
import com.heima.model.article.pojos.ApArticleConfig;
import com.heima.model.comment.dtos.CommentConfigDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.StatisticsDto;
import org.springframework.stereotype.Component;

import java.util.Date;

import java.util.List;

/**
 * @author jack
 * @data 2024 15:05
 */
@Component
public class ArticleClientFallback implements IArticleClient {
    /**
     * 新增或修改app文章信息
     *
     * @param articleDto
     * @return
     */
    @Override
    public ResponseResult saveArticle(ArticleDto articleDto) {
        return ResponseResult.okResult("服务器正忙!");
    }

    @Override
    public PageResponseResult findnewsQueryComents(CommentNewsQueryDto dto) {
        return null;
    }

    @Override
    public ApArticleConfig findById(Long articleId) {
        return null;
    }

    @Override
    public ResponseResult updateCommentStatus(CommentConfigDto commentStatusDto) {
        return ResponseResult.okResult("服务器正忙!");
    }

    @Override
    public PageResponseResult newPage(StatisticsDto dto) {
        return null;
    }


    @Override
    public ResponseResult countAllDate(Integer wmUserId, Date bDate, Date eDate) {
        return ResponseResult.okResult("服务器正忙!");
    }
}
